package project.meetemup.start;

import project.meetemup.R;
import project.meetemup.actionbar.ActionBarActivity;
import project.meetemup.bluetooth.BlueToothPresentationActivity;
import project.meetemup.profile.ProfileActivity;
import project.meetemup.profile.ProfileListActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

/**
 * Initial activity. Set up first application screen, from where users will navigate
 * through app funcionalities
 * @since 8/04/2012
 * @author João Paulo Mota
 *
 */
public class StartActivity extends ActionBarActivity {
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
	//TODO fix layout and remove this button (only have mockup proposes)	
	 Button listProfile = (Button) findViewById(R.id.ListProfileStartButton);
	 listProfile.setOnClickListener(new View.OnClickListener() {
	            public void onClick(View view) {
	                Intent myIntent = new Intent(view.getContext(), ProfileListActivity.class);
	                startActivityForResult(myIntent, 0);
	            }

	        });
	        
	   	 Button newProfile = (Button) findViewById(R.id.NewProfileStartButton);
	   	 newProfile.setOnClickListener(new View.OnClickListener() {
	            public void onClick(View view) {
	                Intent myIntent = new Intent(view.getContext(), ProfileActivity.class);
	                startActivityForResult(myIntent, 0);
	            }

	        });	        

	   	 Button btChatButton = (Button) findViewById(R.id.BTChatStartButton);
	   	 btChatButton.setOnClickListener(new View.OnClickListener() {
	            public void onClick(View view) {
	                Intent myIntent = new Intent(view.getContext(), BlueToothPresentationActivity.class);
	                startActivityForResult(myIntent, 0);
	            }

	        });	        	   	 
	   	 
	   	 Button tendenciesButton = (Button) findViewById(R.id.TendenciesStartButton);
	   	 tendenciesButton.setOnClickListener(new View.OnClickListener() {
	            public void onClick(View view) {
	                Intent myIntent = new Intent(view.getContext(), ProfileActivity.class);
	                startActivityForResult(myIntent, 0);
	            }

	        });	        	   	 				
	   	 
	   	 
	}

}
